package com.learn.springcloud.hystrixexplainindetailconsumer.request.command.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/7/27 17:34
 * @Version : 1.0
 * @Author : hongyan.li@hand-china.com
 * Copyright @ 2000 Shanghai Hand Co. Ltd.
 * All right reserved.
 */
@RestController
public class CommandProvider {


    @RequestMapping("/request/command/say/hello")
    public String sayHello(String name){
        System.out.println("consumer request: " + name);
        return "hello, " + name;
    }

}
